<template>
  <div class="about">
    <div v-for="(item, index) of dataList" :key="index">
      <h1>name:{{ item.username }}</h1>
    </div>
  </div>
</template>

<script>
import { getApplicationListByPage } from "@/api/getList"
export default {
  name: "testApi",
  mounted() {
    this.getTestData()
  },
  data() {
    return {
      dataList: []
    }
  },
  methods: {
    async getTestData() {
      const res = await getApplicationListByPage()
      console.log("res :>> ", res)
      if (res.status === 200) {
        this.dataList = res.data.list
      } else {
        console.log(res.data.message)
      }
    }
  }
}
</script>
